/*
 * Copyright (c) 2012-2013 www.iflytek.com. All Rights Reserved.
 * This software for customer relationship management system, developed by Ifly@ZY team.
 * Software code and design for the team, copy rights reserved.
 */

package com.iflytek.testing;

import java.util.Calendar;

/**
 * <p>
 * .
 * </p>
 *
 * @author poplar.yfyang
 * @version 1.0 2013-02-24 9:59 PM
 * @since JDK 1.5
 */
public class Checker {
    private final Environmental env;


    public Checker(Environmental env) {
        this.env = env;
    }

    public void reminder(){
        Calendar cal = Calendar.getInstance();
        cal.setTimeInMillis(env.getTime());

        int hour = cal.get(Calendar.HOUR_OF_DAY);
        if(hour >= 17){
            env.paly("下午5点了");
        }
    }
}
